﻿using RpcClient.Interface;

namespace RpcClient.Mapper
{
    [Attr.IgnoreIoc]
    internal class MapperScheme : IMapperScheme
    {
        private readonly IMapperManage _Collect;
        public MapperScheme(IMapperHandler mapper, IMapperManage collect)
        {
            this._Collect = collect;
            collect.SetMapper(mapper);
        }
        /// <summary>
        /// 销毁方案
        /// </summary>
        public void Dispose()
        {
            this._Collect.Reset();
        }
    }
}
